// pages/mine/travel/travel.js
Page({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    backgroundurl:'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1601006835387&di=8212afe9dde29f407ebc4dfb6f73da8f&imgtype=0&src=http%3A%2F%2Fimg8.zol.com.cn%2Fbbs%2Fupload%2F21748%2F21747427.jpg',
    navState: 0,//导航状态
  },

  //监听滑块
  bindchange(e) {
    // console.log(e.detail.current)
    let index = e.detail.current;
    this.setData({
      navState:index
    })
  },
  //点击导航
  navSwitch: function(e) {
    // console.log(e.currentTarget.dataset.index)
    let index = e.currentTarget.dataset.index;
    this.setData({
      navState:index
    })
  },
  /**
   * 组件的方法列表
   */
  methods: {

  },
})

